package com.localShare;

/**
 * Created by 883564
 * on 2016/4/26.
 * 全局常量类
 */
public class Constant {

    //从历史记录读取内容
    public static final int COM_FROM_HISTORY=0;
    //从当前intent读取内容
    public static final int COM_FROM_CURRENT=1;

    //lastLoadFlag的值
    //初始值为0
    public static final int LAST_LOAD_INIT=0;
    //加载单张图片
    public static final int LAST_LOAD_SINGLE_IMAGE=1;
    //加载多张图片
    public static final int LAST_LOAD_MULTIPLE_IMAGE=2;
    //加载视频
    public static final int LAST_LOAD_VIDEO=3;

    //私有SharedPreference的名字
    public static final String PRIVATE_SHARED_PREFERENCE="com.localShare";
    //lastLoadFlag
    public static final String LAST_LOAD_FLAG="lastLoadFlag";
    //singleImageUri
    public static final String SINGLE_IMAGE_URI="singleImageUri";
    //multipleImageUri
    public static final String MULTIPLE_IMAGE_URI="multipleImageUri";
    //videoUri
    public static final String VIDEO_URI="videoUri";
    //singleImageUri的初始值
    public static final String SINGLE_IMAGE_URI_INIT="";
    //multipleImageUri的初始值
    public static final String MULTIPLE_IMAGE_URI_INIT="";
    //videoUri的初始值
    public static final String VIDEO_URI_INIT="";
    //multipleImageUri的分隔符
    public static final String MULTIPLE_IMAGE_URI_SPLIT=",";

    //MyIntentService的名字
    public static final String MY_INTENT_SERVICE_NAME="com.localShare.service.MyIntentService";
    //MyIntentService循环睡眠时间(ms)
    public static final int SLEEP_TIME=100000;

    //屏幕唤醒广播接收器接收到屏幕唤醒广播后，使用隐式意图启动主Activity时使用的action
    public static final String SCREEN_ON_RECEIVER_ACTION="com.localShare.action.wakeup";

    //图片类型数据
    public static final String DATA_TYPE_IMAGE="image/*";
    //视频类型数据
    public static final String DATA_TYPE_VIDEO="video/*";
    //空类型数据
    public static final String DATA_TYPE_INIT="";

    //判定单击事件的时间ACTION_DOWN至ACTION_UP
    public static final long SINGLE_CLICK_TIME=1000;
    //判定双击事件的时间ACTION_UP至ACTION_UP
    public static final long DOUBLE_CLICK_TIME=1000;
    //判定此次是否是一次水平滑动
    public static final int X_SLIDE=20;

    //模拟授权失败三部曲，三步曲要一气呵成，否则非授权失败
    //授权失败第一步
    public static final int SIMULATION_AUTHORIZATION_FAIL_FIRST_STEP=1;
    //授权失败第二步
    public static final int SIMULATION_AUTHORIZATION_FAIL_SECOND_STEP=2;
    //授权失败第三步
    public static final int SIMULATION_AUTHORIZATION_FAIL_THIRD_STEP=3;
    //授权失败归位
    public static final int SIMULATION_AUTHORIZATION_FAIL_INIT=0;
}
